package com.lizhi.yun.db.dao;


import com.lizhi.yun.db.pojo.UppOrganPOJO;
import com.lizhi.mybatis.interceptor.PageBounds;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface UppOrganDao{

	public int insertRecord(UppOrganPOJO record);//添加一条完整记录

	public int deleteById(String organId);//通过Id(主键)删除一条记录
	
	public int deleteByList(List<String> listStr);// 批量

	public int updateByIdSelective(UppOrganPOJO record);//按Id(主键)修改指定列的值

	public int updateById(UppOrganPOJO record);//按Id(主键)修改所有列的值

	public UppOrganPOJO selectById(String organId);//通过Id(主键)查询一条记录

	public List<UppOrganPOJO> selectAll(UppOrganPOJO record, PageBounds pageBounds);//根据条件查询

	public List<UppOrganPOJO> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询
	
	public List<UppOrganPOJO> selectAllRecord();//查询所有

	public List<Map<String,Object>> selectOrgan(@Param("organId") String organId, @Param("organNm") String organNm, @Param("state") String state);
}